package com.mrd.gtimpframe.service;

import com.mrd.gtimpframe.base.BaseService;
import com.mrd.gtimpframe.entity.User;

import java.util.List;

public interface UserService extends BaseService {
    /**
     * 增加用户角色
     */
    void addRoles(String userId, String... roles);

    /**
     * 给公司下的所有用户增加角色
     */
    void addRoles4Company(String comId, String... roles);

    List<User> getUsersByCompany(String comId);

    void deleteRoles(String companyInfo, String... roles);

    void deleteRole(String userId, String role);
}
